package com.tedu.egarticle_2.mapper;

import com.tedu.egarticle_2.pojo.dto.UserLoginParam;
import com.tedu.egarticle_2.pojo.entity.Article;
import com.tedu.egarticle_2.pojo.vo.ArticleVO;
import com.tedu.egarticle_2.pojo.vo.UserVO;
import org.hibernate.validator.constraints.Range;

public interface UserMapper {
    UserVO selectUserByUsernameAndPassword(UserLoginParam userLoginParam);

    int insertArticle(Article article);

    ArticleVO selectArticleById(@Range(min = 1, max = 100, message = "文章编号ID在1-100之间") Long articleId);
}
